HighContrast: basic port of emoji CSS from Adwaita
authorDaniel Boles <dboles@src.gnome.org>
Sat, 2 Sep 2017 16:41:59 +0000 (17:41 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 4 Sep 2017 15:03:35 +0000 (11:03 -0400)
This is better than nothing: without specific CSS, the Chooser was too
large, the emoji were too small, and the buttons were generally ugly.

https://bugzilla.gnome.org/show_bug.cgi?id=786956

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css

index 35198da73804587bcba40c35ebb1816fc57defb9..e3cd4ead5967a800a63a08cdd4abb3381ed4e9b8 100644 (file)
@@ -3394,3 +3394,58 @@ stackswitcher button.circular {
   min-width: 0px;
 }
 
+
+/*********
+ * Emoji *
+ ********/
+
+popover.emoji-picker { padding-left: 0; padding-right: 0; }
+
+button.emoji-section,
+button.emoji-section:backdrop { /* Dodge stuff inherited from backdrop button */
+  border-color: transparent;
+  border-width: 3px;
+  border-style: none none solid;
+  border-radius: 0;
+
+  margin: 2px 4px 2px 4px;
+  padding: 3px 0 0;
+  min-width: 32px;
+  min-height: 28px;
+
+  /* reset props inherited from the button style */
+  background: none;
+  box-shadow: none;
+  text-shadow: none;
+
+  outline-offset: -5px;
+
+  &:backdrop:not(:checked) { border-color: transparent; }
+  &:hover { border-color: $borders_color; }
+  &:checked { border-color: $selected_bg_color; }
+
+  label {
+    padding: 0;
+
+    opacity: 0.55;
+  }
+
+  &:hover label { opacity: 0.775; }
+
+  &:checked label {
+    opacity: 1;
+
+    /* Dodge default inversion to white for non-flat, selected button */
+    color: $fg_color;
+  }
+}
+
+.emoji {
+  font-size: x-large;
+  padding: 6px;
+  border-radius: 6px;
+
+  :hover {
+    background: $selected_bg_color;
+  }
+}
index efc4f063178a4145df7e644f0d0eca3a2ca810d2..a722968da5c85a5be3167667442ce44a0f288829 100644 (file)
@@ -1580,3 +1580,24 @@ row:selected button.circular:active { color: #000; }
 stackswitcher button.text-button { min-width: 100px; }
 
 stackswitcher button.circular { min-width: 0px; }
+
+/********* Emoji * */
+popover.emoji-picker { padding-left: 0; padding-right: 0; }
+
+button.emoji-section, button.emoji-section:backdrop { /* Dodge stuff inherited from backdrop button */ border-color: transparent; border-width: 3px; border-style: none none solid; border-radius: 0; margin: 2px 4px 2px 4px; padding: 3px 0 0; min-width: 32px; min-height: 28px; /* reset props inherited from the button style */ background: none; box-shadow: none; text-shadow: none; outline-offset: -5px; }
+
+button.emoji-section:backdrop:not(:checked), button.emoji-section:backdrop:backdrop:not(:checked) { border-color: transparent; }
+
+button.emoji-section:hover, button.emoji-section:backdrop:hover { border-color: gray; }
+
+button.emoji-section:checked, button.emoji-section:backdrop:checked { border-color: #ddd; }
+
+button.emoji-section label, button.emoji-section:backdrop label { padding: 0; opacity: 0.55; }
+
+button.emoji-section:hover label, button.emoji-section:backdrop:hover label { opacity: 0.775; }
+
+button.emoji-section:checked label, button.emoji-section:backdrop:checked label { opacity: 1; /* Dodge default inversion to white for non-flat, selected button */ color: #fff; }
+
+.emoji { font-size: x-large; padding: 6px; border-radius: 6px; }
+
+.emoji :hover { background: #ddd; }
index b60f91ecda6baebd2c6f2eeb8c64c27072ee6417..4879324c7aacacf24e696f45b433ffba31524096 100644 (file)
@@ -1586,3 +1586,24 @@ row:selected button.circular:active { color: #fff; }
 stackswitcher button.text-button { min-width: 100px; }
 
 stackswitcher button.circular { min-width: 0px; }
+
+/********* Emoji * */
+popover.emoji-picker { padding-left: 0; padding-right: 0; }
+
+button.emoji-section, button.emoji-section:backdrop { /* Dodge stuff inherited from backdrop button */ border-color: transparent; border-width: 3px; border-style: none none solid; border-radius: 0; margin: 2px 4px 2px 4px; padding: 3px 0 0; min-width: 32px; min-height: 28px; /* reset props inherited from the button style */ background: none; box-shadow: none; text-shadow: none; outline-offset: -5px; }
+
+button.emoji-section:backdrop:not(:checked), button.emoji-section:backdrop:backdrop:not(:checked) { border-color: transparent; }
+
+button.emoji-section:hover, button.emoji-section:backdrop:hover { border-color: gray; }
+
+button.emoji-section:checked, button.emoji-section:backdrop:checked { border-color: #000; }
+
+button.emoji-section label, button.emoji-section:backdrop label { padding: 0; opacity: 0.55; }
+
+button.emoji-section:hover label, button.emoji-section:backdrop:hover label { opacity: 0.775; }
+
+button.emoji-section:checked label, button.emoji-section:backdrop:checked label { opacity: 1; /* Dodge default inversion to white for non-flat, selected button */ color: #000; }
+
+.emoji { font-size: x-large; padding: 6px; border-radius: 6px; }
+
+.emoji :hover { background: #000; }